package com.supermarket.api.repository;

import com.supermarket.api.entity.ProductSkuEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商品Sku相关
 * @author 李其伟
 * @date 2023/10/19
 */
@Repository
public interface ProductSkuRepository extends JpaRepository<ProductSkuEntity, Long> {

    List<ProductSkuEntity> findAllBySkuOrderBySkuCodeAsc(String sku);

    List<ProductSkuEntity> findAllBySkuCodeIn(List<String> skuCode);

    ProductSkuEntity findAllBySkuCode(String skuCode);
}
